package Basics;

public class 强制转换 {
    public static void main(String[] args) {
        int a = 300;
        byte b = (byte) a; //将a强制转换为byte类型数据
        System.out.println(a); //300
        //强制转化原始数据太大会导致出错
        System.out.println(b); //44
    }
}
